package com.bugman.managed;

import com.bugman.business.ProjectService;
import com.bugman.entity.Project;
import java.util.List;
import javax.ejb.EJB;

/**
 *
 * @author Ediczech
 */
public class ProjectListBean extends BaseBean {

    @EJB
    ProjectService projectService;

    public List<Project> getOwnedProjects() {
        return projectService.getOwnedProjects(getLoggedUser(), true);
    }

    public List<Project> getOtherProjects() {
        return projectService.getOwnedProjects(getLoggedUser(), false);
    }

    public List<Project> getProjects() {
        return projectService.getAllProjects();
    }
}
